/**
 * @Author: 健聪
 * @Description: 常量构造方法
 * @Date: 2024/1/17
 */
void main() {
  const person = const Person("Tom", 20, "male");
  person.work();
}

class Person {
  final String? name;
  final int? age;

  final String gender;

  const Person(this.name, this.age, this.gender);

  void work() {
    print("Work...$name, age...$age, gender...$gender");
  }
}
